#ifndef COUNTRYMAP_H
#define COUNTRYMAP_H

#include <QMainWindow>
#include "city.h"
#include "enterbutton.h"
#include <map>
namespace Ui {
class CountryMap;
}

class CountryMap : public QMainWindow
{
    Q_OBJECT

public:
    explicit CountryMap(QWidget *parent = nullptr);
    int px,py;
//    int passcitynum;
    map<string,int>getx;
    map<string,int>gety;
    map<string,int>getwidth;
    map<string,int>getheight;
//    QPoint pcity[7];
    int cx[7];
    int cy[7];
    EnterButton *jinan = new EnterButton(this);
    ~CountryMap();
protected:
    void paintEvent(QPaintEvent *ev);
    void mousePressEvent(QMouseEvent *ev);
//    void mouseDoubleClickEvent(QMouseEvent *ev);
signals:
    void BacktoStart();

private:
    Ui::CountryMap *ui;
    City c;
    citymap cmp;
    EnterButton eb;
};

#endif // COUNTRYMAP_H
